package com.example.config;
import io.camunda.zeebe.client.ZeebeClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.beans.factory.annotation.Value;  // 引入 @Value 注解
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;

@Configuration
public class ZeebeConfig {

    @Bean
    @Primary
    public ZeebeClient customZeebeClient() {
        // 你的Zeebe客户端配置
        return ZeebeClient.newClientBuilder()
                .gatewayAddress("localhost:26500")
                .usePlaintext()
                .build();
    }
}